#ifndef TIMER_H_INCLUDED
#define TIMER_H_INCLUDED
#include <stdlib.h>
#include <sys/time.h>
#include<stddef.h>

typedef struct __timer{
    struct timeval tv1, tv2;  
    long long tottime, tmptime;
    int start;
}timer;

#define true 1
#define false 0
void timer_start(timer* tm);

void timer_stop(timer* tm);

void timer_stop_n_accum(timer* tm);

#endif // TIMER_H_INCLUDED
